[gd_scene load_steps=5 format=3 uid="uid://bji4f7htd0760"]

[ext_resource type="Script" uid="uid://bxo0w0a7whd1j" path="res://scripts/classes/hinged_door.gd" id="1_hhf38"]

[sub_resource type="BoxMesh" id="BoxMesh_d424b"]
size = Vector3(0.04, 2, 1)

[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_prrml"]
data = PackedVector3Array(-0.02, 1, 0.5, 0.02, 1, 0.5, -0.02, -1, 0.5, 0.02, 1, 0.5, 0.02, -1, 0.5, -0.02, -1, 0.5, 0.02, 1, -0.5, -0.02, 1, -0.5, 0.02, -1, -0.5, -0.02, 1, -0.5, -0.02, -1, -0.5, 0.02, -1, -0.5, 0.02, 1, 0.5, 0.02, 1, -0.5, 0.02, -1, 0.5, 0.02, 1, -0.5, 0.02, -1, -0.5, 0.02, -1, 0.5, -0.02, 1, -0.5, -0.02, 1, 0.5, -0.02, -1, -0.5, -0.02, 1, 0.5, -0.02, -1, 0.5, -0.02, -1, -0.5, 0.02, 1, 0.5, -0.02, 1, 0.5, 0.02, 1, -0.5, -0.02, 1, 0.5, -0.02, 1, -0.5, 0.02, 1, -0.5, -0.02, -1, 0.5, 0.02, -1, 0.5, -0.02, -1, -0.5, 0.02, -1, 0.5, 0.02, -1, -0.5, -0.02, -1, -0.5)

[sub_resource type="CylinderMesh" id="CylinderMesh_2speg"]
top_radius = 0.05
bottom_radius = 0.05
height = 0.15

[node name="SampleDoor" type="Node3D" node_paths=PackedStringArray("pivot_point")]
script = ExtResource("1_hhf38")
pivot_point = NodePath("door_pivot")

[node name="door_pivot" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.5)

[node name="door" type="StaticBody3D" parent="door_pivot"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.5)
collision_layer = 3
collision_mask = 2

[node name="door" type="MeshInstance3D" parent="door_pivot/door"]
mesh = SubResource("BoxMesh_d424b")
skeleton = NodePath("../../..")

[node name="CollisionShape3D" type="CollisionShape3D" parent="door_pivot/door"]
shape = SubResource("ConcavePolygonShape3D_prrml")

[node name="handle" type="MeshInstance3D" parent="door_pivot/door"]
transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0, -0.428122)
mesh = SubResource("CylinderMesh_2speg")
skeleton = NodePath("../../..")
